Code block testing
index.ts
interface Todo {
Todo.title: string
title: string
}
Custom log messageconst const todo: Readonly<Todo>
todo: type Readonly<T> = { readonly [P in keyof T]: T[P]; }
Make all properties in T readonlyReadonly<Todo> = {
title: string
title: 'Delete inactive users'.String.toUpperCase(): string
Converts all the alphabetic characters in a string to uppercase.toUpperCase(),
}
const todo: Readonly<Todo>
todo.title = 'Hello'var Number: NumberConstructor
An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.Number.NumberConstructor.parseInt(string: string, radix?: number | undefined): number
Converts A string to an integer.parseInt('123', 10)